Scenario #2000: Create Self Debitor for Partner with Identical Contact Data

UseCase Create Self Debitor For Partner With Identical Contact Data => Debitor: D-3101100 - Michelle Matthieu

Properties

Required

Given

name value
partnerNumber P-31011
debitorNumberSuffix 00
billable true
vatBusiness false
vatReverseCharge false
defaultPrefix mim

Determine Partner-Person UUID

HTTP GET "/api/hs/office/partners/P-31011" \
  -H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
  `# {` \
  `#   "sub" : "uuid<hsh-alex_superuser>"` \
  `# }`
=> status: 200 OK 
{
  "uuid" : "f53178c3-bd59-4c7a-ba1a-c6a96ff281db", // Partner: P-31011 - Michelle Matthieu
  "partnerNumber" : "P-31011",
  "partnerRel" : {
    "uuid" : "dc7d5a82-2a3b-4523-a002-9f439903892a",
    "anchor" : {
      "uuid" : "806e75fe-7894-4422-86be-783107f07f3f", // Person: Hostsharing eG
      "personType" : "LEGAL_PERSON",
      "tradeName" : "Hostsharing eG",
      "salutation" : null,
      "title" : null,
      "givenName" : null,
      "familyName" : null
    },
    "holder" : {
      "uuid" : "85489e3f-ec95-4785-9d99-c0eecf7a1593", // personUuid
      "personType" : "NATURAL_PERSON",
      "tradeName" : null,
      "salutation" : null,
      "title" : null,
      "givenName" : "Michelle",
      "familyName" : "Matthieu-Zhang"
    },
    "type" : "PARTNER",
    "mark" : null,
    "contact" : {
      "uuid" : "2a4d0f8c-a478-405b-9875-2a6a4474e9c5", // Contact: Michelle Matthieu
      "caption" : "Michelle Matthieu",
      "postalAddress" : {
        "zipcode" : "22123",
        "country" : "Germany",
        "city" : "Hamburg",
        "street" : "An der Wandse 34",
        "name" : "Michelle Matthieu"
      },
      "emailAddresses" : {
        "main" : "michelle@matthieu.example.org"
      },
      "phoneNumbers" : {
        "mobile" : "+49 152 1234567"
      }
    }
  },
  "details" : {
    "uuid" : "13210be8-6649-4fa7-8cb6-6284dc3b4d64",
    "registrationOffice" : null,
    "registrationNumber" : null,
    "birthName" : "Eichbaum",
    "birthPlace" : "Neustadt a.d.R.",
    "birthday" : "1951-03-25",
    "dateOfDeath" : null
  }
}

Create Debitor: D-3101100 - Michelle Matthieu

HTTP POST "/api/hs/office/debitors" \
  -H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
  `# {` \
  `#   "sub" : "uuid<hsh-alex_superuser>"` \
  `# }` \
  <<EOF
{
  "debitorRel" : {
    "anchor.uuid" : "85489e3f-ec95-4785-9d99-c0eecf7a1593", // personUuid
    "holder.uuid" : "85489e3f-ec95-4785-9d99-c0eecf7a1593", // personUuid
    "contact.uuid" : "2a4d0f8c-a478-405b-9875-2a6a4474e9c5" // Contact: Michelle Matthieu
  },
  "debitorNumberSuffix" : "00",
  "billable" : true,
  "vatBusiness" : false,
  "vatReverseCharge" : false,
  "defaultPrefix" : "mim"
}
EOF
=> status: 201 CREATED 7bc3c36a-c1c0-483f-8121-9173ff167ab8

generated on 2026-08-10 01:37:52 for branch